﻿using System.ComponentModel;

namespace CsharpPro._1030;

public class Demo
{
   

    private int id;
    private string name;
    public Demo(){}
    public Demo(int id, string name)
    {
        this.id = id;
        this.name = name;
    }

    public int Id
    {
        get { return id; }
        set { id = value; }
    }

    public string Name
    {
        get =>"";
        set=>Name=value;
    }

    public void TestPrint()
    {
        int result = Add(10,20);
    }

    public int Add(int a, int b)
    {
        return a + b;
    }

    public int Add(int a, int b, int c)
    {
        return a + b + c;
    }

    public double Add(double a, int b)
    {
        return a + b;
    }

    public double Add(int a, double b)
    {
        return a + b;
    }
    
}